package com.daz.student.lifePlan.server.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daz.student.lifePlan.dao.ILifePlanDao;
import com.daz.student.lifePlan.pojo.LifePlanPojo;
import com.daz.student.lifePlan.server.ILifePlanSV;

@Service
public class LifePlanSV implements ILifePlanSV {

	@Autowired
	private ILifePlanDao lifePlanDao;
	@Override
	public Boolean deleteByPrimaryKey(String id) throws Exception {
		// TODO Auto-generated method stub
		return lifePlanDao.deleteByPrimaryKey(id);
	}

	@Override
	public Boolean insert(LifePlanPojo record) {
		// TODO Auto-generated method stub
		return lifePlanDao.insert(record);
	}

	@Override
	public Boolean insertSelective(LifePlanPojo record) throws Exception {
		// TODO Auto-generated method stub
		return lifePlanDao.insertSelective(record);
	}

	@Override
	public List<LifePlanPojo> selectByPrimaryKey(String id) throws Exception {
		// TODO Auto-generated method stub
		return lifePlanDao.selectByPrimaryKey(id);
	}

	@Override
	public Boolean updateByPrimaryKeySelective(LifePlanPojo record)
			throws Exception {
		// TODO Auto-generated method stub
		return lifePlanDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public Boolean updateByPrimaryKeyWithBLOBs(LifePlanPojo record)
			throws Exception {
		// TODO Auto-generated method stub
		return lifePlanDao.updateByPrimaryKeyWithBLOBs(record);
	}

	@Override
	public Boolean updateByPrimaryKey(LifePlanPojo record) throws Exception {
		// TODO Auto-generated method stub
		return lifePlanDao.updateByPrimaryKey(record);
	}

	@Override
	public List<LifePlanPojo> selectByParameter(Map<String, Object> map) throws Exception {
		// TODO Auto-generated method stub
		return lifePlanDao.selectByParameter(map);
	}

}
